<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ include file="/WEB-INF/view/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>系统日志信息列表</title>
	<meta name="decorator" content="default"/>
	<%@ include file="/WEB-INF/view/include/dialog.jsp" %>
	<script type="text/javascript">
		$(document).ready(function() {
	
		});
		function page(n, s) {
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
			return false;
		}
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/syslog/">系统日志信息列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="syslog"
		action="${ctx}/sys/syslog/" method="post"
		class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<input id="pageSize" name="pageSize" type="hidden"
			value="${page.pageSize}" />
		<label>日志类型：</label>
		&nbsp;&nbsp;
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" />
	</form:form>
	<tags:message content="${message}"/>
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>操作的URL</th>
				<th>创建时间</th>
				<th>操作用户IP地址</th>
				<th>日志类型</th>
				<th>操作的方式</th>
				<th>操作提交的数据</th>
				<th>操作用户代理信息</th>
				<th>异常信息</th>
				<th>查看</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list }" var="syslog">
				<tr>
					<td><a href="${ctx}/sys/syslog/view?id=${syslog.id }">${syslog.requestUrl }</a></td>
					<td><fmt:formatDate value="${syslog.createDate }" pattern="yyyy年MM月dd日 HH时mm分ss秒"/> </td>
					<td>${syslog.remoteAddr }</td>
					<td>${syslog.type}</td>
					<td>${syslog.method }</td>
					<td><div title="${syslog.params }" class="flowStr"><c:out value="${syslog.params }"/></div></td>
					<td>${fns:abbr(syslog.userAgent,50)}</td>
					<td>${fns:abbr(syslog.exMsg,50)}</td>
					<td>
						<a href="${ctx}/sys/syslog/view?id=${syslog.id }">查看</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>